﻿using System;
using System.Linq;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.DynamicData;

namespace HieloCostalegre
{
    [MetadataType(typeof(Business_Metadata))]
    public partial class Business
    {
    }

    [TableName("Cliente")]
    public class Business_Metadata
    {
        public object Id { get; set; }

        [DisplayName("Contrato")]
        public object Contract { get; set; }

        [DisplayName("Nombre")]
        public object Name { get; set; }

        [DisplayName("Dirección")]
        [UIHint("MultilineText")]
        public object Address { get; set; }

        [DisplayName("Colonia")]
        public object Address2 { get; set; }

        [DisplayName("Ciudad")]
        public object City { get; set; }

        [DisplayName("Estado")]
        public object State { get; set; }

        [DisplayName("Código Postal")]
        public object PostalCode { get; set; }

        [DisplayName("Teléfono")]
        public object Phone { get; set; }

        [DisplayName("Teléfono Particular")]
        public object Phone2 { get; set; }

        [DisplayName("Notas")]
        public object Notes { get; set; }

        [DisplayName("Fecha del Contrato")]
        [DisplayFormat(DataFormatString="{0:d MMMM yyyy}", ApplyFormatInEditMode = true)]
        public object ContractDate { get; set; }

        [DisplayName("Activo")]
        public object Active { get; set; }

        [DisplayName("Tipo de Negocio")]
        public object BusinessType { get; set; }

        //[DisplayName("Contactos")]
        //public object ContactInfo { get; set; }

        [DisplayName("Ruta")]
        public object Route { get; set; }

        //[DisplayName("Dueño del Negocio")]
        //public object BusinessOwners { get; set; }

        [DisplayName("Asignación")]
        public object RefrigeratorAssignments { get; set; }

        [DisplayName("Ventas")]
        public object Sales { get; set; }
    }
}
